package cn.ssm.service.impl;

import cn.ssm.mappers.ProviderMapper;
import cn.ssm.pojo.Provider;
import cn.ssm.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    private ProviderMapper providerMapper;
    @Override
    public List<Provider> selectAll(Provider provider) {
        return providerMapper.selectAll(provider);
    }

    @Override
    public Provider selectById(Integer pid) {
        return providerMapper.selectById(pid);
    }

    @Override
    public Integer save(Provider provider) {
        return providerMapper.save(provider);
    }

    @Override
    public Integer update(Provider provider) {
        return providerMapper.update(provider);
    }

    @Override
    public Integer delete(Integer pid) {
        return providerMapper.delete(pid);
    }
}
